package com.turing.post.organization.util;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 商户脱机消费终端管理实体
 * @author kangzhe
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "CONSUMETERMINAL")
public class ConsumeTerminal implements Serializable {
	
	/**
	 * 商户号
	 */
	private String merchantNo;
	@Column(name = "MERCHANTNO", nullable = false)
	public String getMerchantNo() {
		return merchantNo;
	}
	public void setMerchantNo(String merchantNo) {
		this.merchantNo = merchantNo;
	}
	
	/**
	 * 商户机构号
	 */
	private String merchantBranchNo;
	@Column(name = "MERCHANTBRANCHNO", nullable = false)
	public String getMerchantBranchNo() {
		return merchantBranchNo;
	}
	public void setMerchantBranchNo(String merchantBranchNo) {
		this.merchantBranchNo = merchantBranchNo;
	}
	
	/**
	 * 读卡器号
	 */
	private String terminalNo;
	@Id
	@Column(name = "TERMINALNO", nullable = false)
	public String getTerminalNo() {
		return terminalNo;
	}
	public void setTerminalNo(String terminalNo) {
		this.terminalNo = terminalNo;
	}
	
	/**
	 * PSAM卡号
	 */
	private String psamCardNo;
	@Column(name = "PSAMCARDNO", nullable = false)
	public String getPsamCardNo() {
		return psamCardNo;
	}
	public void setPsamCardNo(String psamCardNo) {
		this.psamCardNo = psamCardNo;
	}
	
	/**
	 * PSAM卡序号
	 */
	private String psamSeqNo;
	@Column(name = "PSAMSEQNO", nullable = false)
	public String getPsamSeqNo() {
		return psamSeqNo;
	}
	public void setPsamSeqNo(String psamSeqNo) {
		this.psamSeqNo = psamSeqNo;
	}
	
	/**
	 * PSAM卡密钥
	 */
	private String psamKey;
	@Column(name = "PSAMKEY", nullable = false)
	public String getPsamKey() {
		return psamKey;
	}
	public void setPsamKey(String psamKey) {
		this.psamKey = psamKey;
	}
	
	/**
	 * 开卡时间
	 */
	private Date openTime;
	@Column(name = "OPENTIME", nullable = false)
	public Date getOpenTime() {
		return openTime;
	}
	public void setOpenTime(Date openTime) {
		this.openTime = openTime;
	}
	
	/**
	 * 上次结算日期
	 */
	private Date tranDate;
	@Column(name = "TRANDATE", nullable = false)
	public Date getTranDate() {
		return tranDate;
	}
	public void setTranDate(Date tranDate) {
		this.tranDate = tranDate;
	}
	
	/**
	 * 备注
	 */
	private String remark;
	@Column(name = "REMARK", nullable = false)
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
}
